<?php foreach ($personnes as $personne): ?>
<a href="<?php echo url_for('hometouch/login?personne=' . $personne['id']) ?>">
<button class="button_a" type="button" style="width:250px; float: left;">
<?php $pic = $personne['photo'];
if(!$pic){
	if($personne['sexe']=='M'){
		$pic = 'user_male.png';
	}else{
		$pic = 'user_female.png';
	}
}
?>
<img alt="" height="64" src="/images/personnes/<?php echo $pic;?>"><br/>
	<?php echo $personne['prenom'] . '<br/>' . $personne['nom']?>
	</button>
</a>	
<?php endforeach;?>